package structure.adapte;

/**
 * @author dali
 * @date 2021-07-12 19:51
 * @Description
 */

public class Phone {
    //充电
    void charging() {
        IVoltage5V a1 = new Adapter1();
        a1.out5V();
        IVoltage5V a2 = new Adapter2(new Voltage220V());
        a2.out5V();
    }
}
